home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat6 / amesh.z / amesh
Encoding:
Text File  |  2000-10-16  |  4.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. aaaammmmeeeesssshhhh((((6666DDDD))))                                                            aaaammmmeeeesssshhhh((((6666DDDD))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      amesh - audio spectrum analyzer
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      aaaammmmeeeesssshhhh
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _a_m_e_s_h computes an estimation of the spectrum of an audio input every
  16.      frame and displays a 3D graph of the last 25 frames in a window.  The
  17.      frequencies range from 0 Hz on the left to half the input sampling rate
  18.      on the right.
  19.  
  20.      The audio source should be selected using the audio control panel, and
  21.      the input gain should be adjusted to get a reasonable input level.  _a_m_e_s_h
  22.      does not copy the audio input to the output.
  23.  
  24.      Holding down the middle mouse button acts as a track-ball interface to
  25.      change the viewing angle.  Holding down the left mouse button and moving
  26.      the mouse zooms in and out on the graphics.  The right mouse button pops
  27.      up a menu with the following items.
  28.  
  29.      DDDDrrrraaaawwww MMMMooooddddeeeessss
  30.           Each of three options on a sub-menu can independently toggled.
  31.           _a_m_e_s_h will draw lines along the time axis, the frequency axis, the
  32.           amplitude axis, or any combination of the three.  By default, lines
  33.           are drawn along the frequency axis.
  34.  
  35.      LLLLiiiinnnneeee WWWWiiiiddddtttthhhh
  36.           This menu item varies the thickness of the line drawn. The default
  37.           is two pixel wide lines.
  38.  
  39.      CCCCoooolllloooorrrr
  40.           Toggles between monochrome and color displays. Color is the default.
  41.  
  42.      LLLLoooogggg FFFFrrrreeeeqqqq SSSSccccaaaalllleeee
  43.           Toggles between logarithmic and linear frequency scales. The default
  44.           is linear.
  45.  
  46.      TTTTmmmmeeeesssshhhh
  47.           Toggles between wire frame and shaded triangle mesh representations
  48.           of the power spectrum.  The default is wire frame.
  49.  
  50.      WWWWhhhheeeeeeeellll
  51.           _a_m_e_s_h can simulate a wheel rolling over a rough surface under the
  52.           influence of gravity.  The frequency spectrum forms the rough
  53.           surface, which moves past the wheel.  The wheel jumps off the
  54.           surface when it runs into a peak and then falls back due to gravity.
  55.           This menu option lets you turn the visibility of the wheel on or off
  56.           and lets you change your viewpoint to a "wheel's-eye" view or back
  57.           to normal.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. aaaammmmeeeesssshhhh((((6666DDDD))))                                                            aaaammmmeeeesssshhhh((((6666DDDD))))
  71.  
  72.  
  73.  
  74.      FFFFFFFFTTTT SSSSiiiizzzzeeee
  75.           _a_m_e_s_h estimates the power spectrum by performing a FFT on a fixed
  76.           number of consecutive samples from the input stream for each frame.
  77.           The number of samples is selected by the this menu item.  The
  78.           default is 128 consecutive samples.
  79.  
  80.      QQQQuuuuiiiitttt Quits _a_m_e_s_h.
  81.  
  82. TTTTeeeecccchhhhnnnniiiiccccaaaallll NNNNooootttteeeessss
  83.      The power spectrum is divided into 64 frequency bands evenly spaced
  84.      between 0 Hz and (Sampling Rate/2).  If the input is sampled at 8Khz the
  85.      frequency bands go up to 4Khz. If the input sampling rate is 22Khz the
  86.      top frequency band is 11Khz etc.  _a_m_e_s_h estimates the power spectrum by
  87.      performing a FFT on the consecutive number of samples selected by the _F_F_T
  88.      _S_i_z_e menu (default 128). Thus the main loop of amesh looks like:
  89.  
  90.           while (TRUE) {
  91.                Read all available samples into the input buffer;
  92.                Perform FFT on the last 128 samples in the input buffer;
  93.                Compute power spectrum for 64 frequency bands
  94.                from the FFT output.
  95.                Plot the most recent 25 power spectra using GL.
  96.           }
  97.  
  98. FFFFIIIILLLLEEEESSSS
  99.      /usr/demos/General_Demos/amesh/data        wav sound files used by amesh
  100.  
  101. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  102.      apanel(1)
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.